package com.lecyon.farm.entity.elasticsearch;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import javax.persistence.Id;
import java.time.LocalDateTime;

/**
 * @author Yao Zheng
 * @Date 2020/4/19 11:45
 */
@Data
@ApiModel("地块外围点")
@Document(indexName = "work_outpoints",type = "workserial")
public class WorkOutPoints {

    @Id
    private String id;

    @Field
    private String work_serial;

    @Field
    private LocalDateTime work_date;

    @Field
    private String province;

    @Field
    private String city;

    @Field
    private String towns;

    @Field
    private String county;

    @Field
    private LocalDateTime startTime;

    @Field
    private String gps;

    @Field
    private LocalDateTime endTime;

    @Field
    private String carId;

}
